<!DOCTYPE html><html><head>
      <title>&#x7ADE;&#x8D5B;C++&#x7F16;&#x7801;&#x89C4;&#x8303;</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      
        <script type="text/x-mathjax-config">
          MathJax.Hub.Config({"extensions":["tex2jax.js"],"jax":["input/TeX","output/HTML-CSS"],"messageStyle":"none","tex2jax":{"processEnvironments":false,"processEscapes":true,"inlineMath":[["$","$"],["\\(","\\)"]],"displayMath":[["$$","$$"],["\\[","\\]"]]},"TeX":{"extensions":["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]},"HTML-CSS":{"availableFonts":["TeX"]}});
        </script>
        <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
        
      
      
      
      
      
      
      
      
      
      <style>
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}

/* highlight */
pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em;
}
pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: hsla(24, 20%, 50%,.08);
  background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}

pre[data-line] .line-highlight:before, 
pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: .4em;
  left: .6em;
  min-width: 1em;
  padding: 0 .5em;
  background-color: hsla(24, 20%, 50%,.4);
  color: hsl(24, 20%, 95%);
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: .3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}

pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: .4em;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;background-color:#f0f0f0;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.markdown-preview .md-toc{padding:0}.markdown-preview .md-toc .md-toc-link-wrapper .md-toc-link{display:inline;padding:.25rem 0}.markdown-preview .md-toc .md-toc-link-wrapper .md-toc-link p,.markdown-preview .md-toc .md-toc-link-wrapper .md-toc-link div{display:inline}.markdown-preview .md-toc .md-toc-link-wrapper.highlighted .md-toc-link{font-weight:800}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px + 2em)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc .md-toc{padding:0 16px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc .md-toc .md-toc-link-wrapper .md-toc-link{display:inline;padding:.25rem 0}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc .md-toc .md-toc-link-wrapper .md-toc-link p,html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc .md-toc .md-toc-link-wrapper .md-toc-link div{display:inline}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc .md-toc .md-toc-link-wrapper.highlighted .md-toc-link{font-weight:800}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  300px/2);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
  /*重头戏开始*/
  /*初始化格式*/
  /* 一级标题 */
  /*三个小点点*/
  /*二级标题*/
  /* 三级标题 */
  /* 四级标题 */
  /* 引用
* 左边缘颜色 border-left-color:black;
* 背景色 background:gray; */
  /* 引用文字 */
  /* 链接 */
  /* 加粗 */
  /* 斜体 */
  /* 加粗斜体 */
  /* 删除线 */
  /* 分割线 */
  /* 图片 */
  /*音频*/
  /*视频*/
  /* 图片描述文字 */
  /* 列表内容 */
  /* ol+p strong {
    margin-left: -16px;
  }*/
  /* 序号 */
  /*设置条纹*/
  /*设置首列不同*/
  /* 脚注文字 */
  /* 脚注上标 */
  /* 脚注超链接样式 */
  /* "参考资料"四个字 
* 内容 content: "参考资料";
*/
  /* 参考资料编号 */
  /* 参考资料文字 */
  /* 参考资料超链接 */
  /* 参考资料解释 */
  /* 行间公式*/
  /* 行内公式*/
  /* 滑动图片*/
  /*打印时强制下一页*/
  /*容器和媒体*/
  /*代码块*/
  /* 行内代码 */
  /* 非微信代码块
* 代码块不换行 display:-webkit-box !important;
* 代码块换行 display:block;
*/
  /* 表格内的单元格
* 字体大小 font-size: 16px;
* 边框 border: 1px solid #ccc;
* 内边距 padding: 5px 10px;
*/
  /*mpe的代码样式*/
  /*数学相关*/
}
.markdown-preview.markdown-preview * {
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
  box-sizing: border-box;
  font-family: "Consolas", "Monaco", " Lucida Console", " Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", " Courier New", "monospace";
}
.markdown-preview.markdown-preview body {
  line-height: 1.5em;
  letter-spacing: 0.034em;
  color: #3f3f3f;
  font-size: 16px;
  word-break: all;
  background-color: #ffffff;
  max-width: 1000px;
  /*设置最大宽度*/
  margin: 0 auto;
  /*设置内容居中*/
}
.markdown-preview.markdown-preview h1,
.markdown-preview.markdown-preview h2,
.markdown-preview.markdown-preview h3,
.markdown-preview.markdown-preview h4,
.markdown-preview.markdown-preview h5,
.markdown-preview.markdown-preview h6 {
  margin-bottom: 0.25em;
  margin-top: 0.5em;
}
.markdown-preview.markdown-preview h1::before {
  max-width: 1000px;
  content: " ";
  position: absolute;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #fc625d;
  width: 12px;
  height: 12px;
  left: 10px;
  top: 10px;
  -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  z-index: 2;
}
.markdown-preview.markdown-preview h1 {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 70px;
  line-height: 70px;
  margin-top: 10px;
  margin-bottom: 0px;
  padding-bottom: 0em;
  border: 0px;
  /* 一级标题内容 */
  font-size: 22px;
  color: #3c70c6;
}
.markdown-preview.markdown-preview h2 {
  display: inline-block;
  background: #2dc878;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  padding: 8px;
  box-shadow: #666666 2px 3px 1.5px 1.5px;
  /* 二级标题内容 */
  color: white;
  font-size: 20px;
  font-weight: normal;
  text-shadow: #666666 1px 1px 1px;
}
.markdown-preview.markdown-preview h2::after {
  display: block;
}
.markdown-preview.markdown-preview h3:before {
  content: "";
  background: size 1.5em;
  display: inline-block;
  margin-top: 0.5em;
}
.markdown-preview.markdown-preview h3 {
  display: block;
  font-size: 19px;
  font-weight: bold;
  color: #1956b8;
  line-height: 1.5em;
  padding-left: 8px;
}
.markdown-preview.markdown-preview h4:before {
  content: "";
  background: size 1.5em;
  display: inline-block;
}
.markdown-preview.markdown-preview h4 {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #016063;
  line-height: 1.5em;
}
.markdown-preview.markdown-preview h5 {
  font-weight: bold;
  color: #219c67;
  font-size: 17px;
}
.markdown-preview.markdown-preview h6 {
  font-size: 16px;
  color: #eb085f;
  line-height: 1.5em;
  text-align: center;
  font-style: italic;
  font-weight: bold;
}
.markdown-preview.markdown-preview p {
  padding-top: 0px;
  padding-left: 1em;
  padding-right: 1em;
  color: #4a4a4a;
  line-height: 1.5em;
  font-size: 16px;
  /* text-indent: 2em;*/
  /*首行缩进*/
}
.markdown-preview.markdown-preview blockquote {
  padding: 15px 15px 10px 10px;
  line-height: 27px;
  border-radius: 10px;
  display: block;
  border-color: #bababa;
  color: #656565;
  background-color: #f3f0ea;
  font-style: italic;
  border-left: 5px solid;
  padding-left: 1em;
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: 0.5em;
}
.markdown-preview.markdown-preview blockquote p {
  padding: 0px;
  font-size: 15px;
  color: #126b15;
}
.markdown-preview.markdown-preview a:hover,
.markdown-preview.markdown-preview a:active {
  font-size: larger;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .markdown-preview.markdown-preview a:hover,
  .markdown-preview.markdown-preview a:active {
    background: linear-gradient(to right, red, #01d6c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.markdown-preview.markdown-preview a {
  color: #143974;
  text-decoration: underline;
}
.markdown-preview.markdown-preview strong {
  line-height: 1.75em;
  color: #ff1818;
}
.markdown-preview.markdown-preview em {
  color: #126b15;
  /*字符间距*/
}
.markdown-preview.markdown-preview em strong {
  color: #126b15;
  /*字符间距*/
}
.markdown-preview.markdown-preview del,
.markdown-preview.markdown-preview s {
  font-style: italic;
  text-decoration: line-through;
  font-weight: bolder;
  color: #fc625d;
}
.markdown-preview.markdown-preview sub {
  color: #0b941b;
}
.markdown-preview.markdown-preview hr {
  height: 2px;
  padding: 0;
  border: none;
  text-align: center;
  background-image: linear-gradient(to right, rgba(60, 122, 198, 0), #063a7a, rgba(60, 122, 198, 0));
}
.markdown-preview.markdown-preview .container img {
  max-width: 100%;
}
.markdown-preview.markdown-preview img {
  display: block;
  border-radius: 10px;
  max-width: 99%;
  margin: 0 auto;
}
.markdown-preview.markdown-preview img:active {
  transform: scale(2);
}
.markdown-preview.markdown-preview audio {
  display: block;
  margin: 0 auto;
}
.markdown-preview.markdown-preview video {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  max-height: 700px;
  margin: 0 auto;
}
@media only screen and (max-width: 480px) {
  .markdown-preview.markdown-preview {
    /*此适配不同手机型号下文字，图片的大小*/
  }
}
@media only screen and (max-width: 375px) {
  .markdown-preview.markdown-preview {
    /*此适配不同手机型号下文字，图片的大小*/
  }
}
.markdown-preview.markdown-preview figcaption {
  display: block;
  font-size: 12px;
  font-family: PingFangSC-Light;
}
.markdown-preview.markdown-preview ul,
.markdown-preview.markdown-preview ol {
  margin-top: 0.25em;
  margin-bottom: 0.5em;
  margin-left: 1em;
}
.markdown-preview.markdown-preview p + ul,
.markdown-preview.markdown-preview p + ol {
  margin-top: -1em;
  margin-left: 2em;
}
.markdown-preview.markdown-preview li::marker {
  color: #6116ac;
  font-weight: bolder;
  font-style: italic;
}
.markdown-preview.markdown-preview ul li::marker {
  font-style: normal;
  font-weight: 800;
}
.markdown-preview.markdown-preview li {
  list-style-type: decimal;
  list-style-position: outside;
  color: #01474e;
  size: 14px;
}
.markdown-preview.markdown-preview ol li {
  list-style-type: decimal;
  list-style-position: outside;
}
.markdown-preview.markdown-preview ul li {
  list-style-type: disc;
  list-style-position: outside;
}
.markdown-preview.markdown-preview li li {
  list-style-type: lower-latin;
  list-style-position: outside;
}
.markdown-preview.markdown-preview li ol {
  list-style-type: lower-latin;
  list-style-position: outside;
  margin-top: 0px;
}
.markdown-preview.markdown-preview li p {
  margin-left: 0px;
  padding-left: 0px;
}
.markdown-preview.markdown-preview table {
  margin: 0 auto;
  width: 100%;
  font-size: 1em;
  border: 0px;
  border-spacing: 0;
  display: table;
  /*去掉单元格间隙*/
  border-collapse: collapse;
  word-wrap: break-word;
  word-break: keep-all;
}
.markdown-preview.markdown-preview thead {
  background-color: #e0e0e0;
  color: #000;
  text-align: left;
  vertical-align: bottom;
  margin: 0 auto;
  width: 100%;
}
.markdown-preview.markdown-preview thead.md-table-edit {
  background-color: transparent;
}
.markdown-preview.markdown-preview thead th,
.markdown-preview.markdown-preview tfoot th {
  padding: 0.25em 0.25em 0.25em 0.4em;
  text-transform: uppercase;
}
.markdown-preview.markdown-preview th {
  text-align: center;
  font-weight: bolder;
  color: #fff;
  background-color: #353535;
}
.markdown-preview.markdown-preview td {
  vertical-align: middle;
  padding: 0.25em 0.25em 0.25em 0.4em;
  color: #237465;
}
.markdown-preview.markdown-preview tr:nth-of-type(even) {
  background: #eeeded;
}
.markdown-preview.markdown-preview td:nth-child(1) {
  font-weight: bolder;
  font-style: italic;
  color: #064d8c;
}
.markdown-preview.markdown-preview caption {
  color: #000;
  font: italic 85%/1 arial, sans-serif;
  padding: 1em 0;
  text-align: center;
}
.markdown-preview.markdown-preview .md-fences {
  margin-left: 2em;
  margin-bottom: 3em;
}
.markdown-preview.markdown-preview .md-fences .CodeMirror.CodeMirror-wrap {
  top: -0.8em;
}
.markdown-preview.markdown-preview tt {
  font-size: 0.875em;
  line-height: 1.714285em;
}
.markdown-preview.markdown-preview body .task-list {
  padding-left: 1rem;
}
.markdown-preview.markdown-preview body .task-list-item {
  list-style-type: none;
  margin-left: -1.8em;
}
.markdown-preview.markdown-preview body .task-list-item .task-list-item-checkbox {
  margin-right: 0.8em;
}
.markdown-preview.markdown-preview body .task-list-item input:before {
  content: '\221A';
  display: inline-block;
  width: 1.25rem;
  height: 1.5rem;
  vertical-align: middle;
  text-align: center;
  color: #ddd;
  background-color: #F3F2EE;
}
.markdown-preview.markdown-preview body .task-list-item input:checked:before,
.markdown-preview.markdown-preview body .task-list-item input[checked]:before {
  color: inherit;
}
.markdown-preview.markdown-preview body kbd {
  color: #1f0909;
}
.markdown-preview.markdown-preview body li > p {
  left: 0;
}
.markdown-preview.markdown-preview body .md-meta,
.markdown-preview.markdown-preview body .md-before,
.markdown-preview.markdown-preview body .md-after {
  color: #999;
}
.markdown-preview.markdown-preview .footnotes {
  padding-top: 8px;
}
.markdown-preview.markdown-preview .footnote-word {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-ref {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-item em {
  color: #3c70c6;
  font-size: 13px;
  font-style: normal;
  border-bottom-color: 1px dashed #3c70c6;
}
.markdown-preview.markdown-preview .footnotes-sep:before {
  background-image: none;
  background-size: none;
  display: block;
  width: auto;
  height: auto;
}
.markdown-preview.markdown-preview .footnote-num {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-item p {
  color: #3c70c6;
  font-weight: bold;
}
.markdown-preview.markdown-preview .footnote-item a {
  color: #3c70c6;
}
.markdown-preview.markdown-preview .footnote-item p em {
  font-size: 14px;
  font-weight: normal;
  border-bottom: 1px dashed #3c70c6;
}
.markdown-preview.markdown-preview .block-equation svg {
  max-width: 300% !important;
}
.markdown-preview.markdown-preview .inline-equation svg {
  max-width: 300% !important;
}
.markdown-preview.markdown-preview .imageflow-img {
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
}
.markdown-preview.markdown-preview .nextpage {
  page-break-after: always;
  border: 0px;
  background-image: none;
  background: none;
}
.markdown-preview.markdown-preview .container {
  width: 1100px;
  max-width: 100%;
}
.markdown-preview.markdown-preview input {
  text-align: center;
  vertical-align: middle;
}
.markdown-preview.markdown-preview code {
  display: inline-block;
  color: #b83492;
  background-color: #f2fffe;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-weight: 800;
  padding: 0;
  margin: 0;
  text-indent: 0;
}
.markdown-preview.markdown-preview pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em !important;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: rgba(153, 122, 102, 0.08);
  background: linear-gradient(to right, rgba(153, 122, 102, 0.1) 70%, rgba(153, 122, 102, 0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight:before,
.markdown-preview.markdown-preview pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: 0.4em;
  left: 0.6em;
  min-width: 1em;
  padding: 0 0.5em;
  background-color: rgba(153, 122, 102, 0.4);
  color: #f5f2f0;
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: 0.3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}
.markdown-preview.markdown-preview pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: 0.4em;
}
.markdown-preview.markdown-preview pre {
  background: #f0f1f1;
  border: 0px solid #b66a07;
  border-radius: 10px;
  font: 16px/22px, "Microsoft YaHei", Arial, Sans-Serif;
  line-height: 1.35em;
  max-width: 90%;
  text-shadow: none;
  color: #000;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.4);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: auto;
  margin-bottom: 1em;
  margin-top: 0.5em;
  padding-top: 1em;
  padding-bottom: 1em;
  font-weight: 800;
}
.markdown-preview.markdown-preview pre:after {
  color: #ccc;
  content: attr(data-lang);
  font-size: 16px;
  height: 15px;
  line-height: 15px;
  padding: 5px 10px 0;
  position: absolute;
  right: 0;
  text-align: right;
  top: 0;
}
.markdown-preview.markdown-preview .language- {
  padding: 2px;
}
.markdown-preview.markdown-preview pre code {
  width: 100%;
  background-color: #eee;
  margin: 0px;
  border: 0px;
  padding-left: 4em;
  padding-top: 1em;
  padding-bottom: 1em;
}
.markdown-preview.markdown-preview .token.comment {
  font-style: italic;
  color: #075811;
}
.markdown-preview.markdown-preview .token.function {
  color: #ff6600;
}
.markdown-preview.markdown-preview .token.string {
  color: blue;
}
.markdown-preview.markdown-preview .token.number {
  color: #237465;
}
.markdown-preview.markdown-preview .token.directive-hash {
  color: #06615e;
}
.markdown-preview.markdown-preview .token.class-name {
  color: teal;
}
.markdown-preview.markdown-preview .token.keyword {
  font-style: italic;
  font-weight: 1100;
}
.markdown-preview.markdown-preview .mstyle,
.markdown-preview.markdown-preview .mrow,
.markdown-preview.markdown-preview .mfrac,
.markdown-preview.markdown-preview .math,
.markdown-preview.markdown-preview .mord,
.markdown-preview.markdown-preview .mo,
.markdown-preview.markdown-preview .mi,
.markdown-preview.markdown-preview .mn {
  font-weight: bolder;
  /*数学加粗*/
  line-height: 2em;
  color: #bf39b4;
  text-shadow: 1px 1px #ffffff;
  /*亮*/
}
.markdown-preview.markdown-preview .node {
  font-size: 14px;
  vertical-align: middle;
  min-width: 100px;
}

      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview  ">
      <center>
<h1>&#x7ADE;&#x8D5B; C/C++ &#x901A;&#x7528;&#x4EE3;&#x7801;&#x89C4;&#x8303;</h1>
</center>
<h2 class="mume-header" id="%E3%80%87-%E5%89%8D%E8%A8%80">&#x3007;&#x3001;&#x524D;&#x8A00;</h2>

<p>&#x4EE3;&#x7801;&#x98CE;&#x683C;&#x662F;&#x4E00;&#x4E2A;&#x770B;&#x4F3C;&#x4E0D;&#x91CD;&#x8981;&#xFF0C;&#x4F46;&#x5B9E;&#x9645;&#x4E0A;&#x5F88;&#x91CD;&#x8981;&#x7684;&#x4E1C;&#x897F;&#x3002;<br>
&#x4EE3;&#x7801;&#x98CE;&#x683C;&#x4F5C;&#x4E3A;&#x8F85;&#x52A9;&#x82F1;&#x96C4;&#xFF08;&#x8111;&#x8865;&#x4E00;&#x4E0B;&#x738B;&#x8005;&#x8363;&#x8000;5&#x4EBA;&#x56E2;&#x91CC;&#x7684;&#x8F85;&#x52A9;&#x82F1;&#x96C4;&#xFF09;&#xFF0C;&#x6709;&#x5979;&#x7684;&#x53D1;&#x6325;&#x573A;&#x666F;&#x3002;</p>
<ul>
<li><strong>&#x524D;&#x671F;</strong>&#xFF1A;&#x63A5;&#x53D7;&#x597D;&#x7684;&#x4EE3;&#x7801;&#x89C4;&#x8303;&#x8F70;&#x70B8;&#xFF0C;&#x8BA9;&#x5B69;&#x5B50;&#x77E5;&#x9053;&#x4EC0;&#x4E48;&#x6837;&#x7684;&#x4EE3;&#x7801;&#x662F;&#x7F8E;&#x7684;&#x3002;&#x64CD;&#x4F5C;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x53EA;&#x8981;&#x6C42;7&#x6210;&#x89C4;&#x8303;&#x5373;&#x53EF;&#x3002;</li>
<li><strong>&#x4E2D;&#x671F;</strong>&#xFF1A;&#x5B69;&#x5B50;&#x5199;&#x591A;&#x4E86;&#xFF0C;&#x5C31;&#x81EA;&#x5DF1;&#x5F80;&#x7F8E;&#x7684;&#x65B9;&#x5411;&#x603B;&#x7ED3;&#xFF0C;&#x5E76;&#x53D1;&#x5C55;&#x4E86;&#x3002;</li>
<li><strong>&#x540E;&#x671F;</strong>&#xFF1A;&#x4E3A;&#x4E86;&#x63D0;&#x5347;&#x81EA;&#x5DF1;&#x7684;&#x4E13;&#x4E1A;&#x6027;&#x548C;&#x51C6;&#x786E;&#x6027;&#xFF0C;&#x4F1A;&#x81EA;&#x5DF1;&#x7422;&#x78E8;&#x600E;&#x4E48;&#x4E25;&#x683C;&#x6309;&#x7167;&#x89C4;&#x8303;&#x5199;&#x4EE3;&#x7801;&#x7684;&#x3002;</li>
</ul>
<h2 class="mume-header" id="%E4%B8%80-%E6%95%B4%E4%BD%93%E8%A7%84%E8%8C%83">&#x4E00;&#x3001;&#x6574;&#x4F53;&#x89C4;&#x8303;</h2>

<h3 class="mume-header" id="11-%E5%A4%B4%E6%96%87%E4%BB%B6">1.1 &#x5934;&#x6587;&#x4EF6;</h3>

<p>&#x5F15;&#x5165;&#x5934;&#x6587;&#x4EF6;&#xFF0C;<code>#include</code> &#x4E0E; <code>&lt;...&gt;</code> &#x4E4B;&#x95F4;&#x5E94;&#x6709;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#x3002;</p>
<pre data-role="codeBlock" data-info="cpp{.line-numbers}" class="language-cpp line-numbers"><span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;cstdio&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;cstring&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;iostream&gt;</span></span>
<span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;algorithm&gt;</span></span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></pre><p>&#x5C3D;&#x91CF;&#x4E0D;&#x4F7F;&#x7528;&#x4E07;&#x80FD;&#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x53EA;&#x5F15;&#x7528;&#x9700;&#x8981;&#x7684;&#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x4ECE;&#x800C;&#x51CF;&#x5C11;&#x5F00;&#x9500;&#x5E76;&#x907F;&#x514D;&#x4E00;&#x4E9B;&#x5947;&#x602A;&#x7684;&#x4E8B;&#x60C5;&#x3002;</p>
<h3 class="mume-header" id="12-%E6%A0%87%E8%AF%86%E7%AC%A6">1.2 &#x6807;&#x8BC6;&#x7B26;</h3>

<ol>
<li><code>&#x6807;&#x8BC6;&#x7B26;</code>&#x5E94;&#x4F7F;&#x7528;&#x548C;&#x4F5C;&#x7528;&#x6709;&#x5173;&#x7684;&#x82F1;&#x6587;&#xFF0C;&#x53EF;&#x7531;&#x591A;&#x4E2A;&#x5355;&#x5B57;&#x7EC4;&#x6210;&#x3002;</li>
<li>&#x7B80;&#x5355;&#x53D8;&#x91CF;&#x540D;(&#x4E00;&#x4E24;&#x4E2A;&#x5B57;&#x6BCD;)&#x5E94;&#x4F5C;&#x7528;&#x660E;&#x663E;&#xFF0C;&#x4E0D;&#x5B9C;&#x8FC7;&#x591A;&#x3002;</li>
<li>&#x4E0D;&#x8981;&#x4E71;&#x7528;&#x7F29;&#x5199;&#x3002;</li>
<li>&#x63A8;&#x8350;&#x4F7F;&#x7528;<code>&#x9A7C;&#x5CF0;&#x547D;&#x540D;&#x6CD5;</code>&#x6216;<code>&#x86C7;&#x5F62;&#x547D;&#x540D;&#x6CD5;</code>&#xFF0C;&#x4F46;&#x540C;&#x4E00;&#x4E2A;&#x7A0B;&#x5E8F;&#x4E2D;&#x53EA;&#x4F7F;&#x7528;&#x4E00;&#x79CD;&#x3002;</li>
</ol>
<p><strong>&#x9A7C;&#x5CF0;&#x547D;&#x540D;&#x6CD5;</strong>&#xFF1A;<code>PrintEmployeePaychecks()</code><br>
<strong>&#x86C7;&#x5F62;&#x547D;&#x540D;&#x6CD5;</strong>&#xFF1A;<code>print_employee_paychecks()</code><br>
<strong>&#x9519;&#x8BEF;&#x793A;&#x4F8B;</strong>&#xFF1A;<code>Print_Employee_Paychecks()(&#x4E0B;&#x5212;&#x7EBF; + &#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;)</code>&#x3001;<code>printemployeepaychecks()(&#x5168;&#x5C0F;&#x5199;)</code></p>
<h3 class="mume-header" id="13-%E7%A9%BA%E8%A1%8C">1.3 &#x7A7A;&#x884C;</h3>

<p>&#x5728;&#x957F;&#x4EE3;&#x7801;&#x7684;&#x6761;&#x4EF6;&#x4E0B;&#xFF0C;&#x5E94;&#x7ED9;&#x4E0D;&#x540C;&#x4F5C;&#x7528;&#x7684;&#x4EE3;&#x7801;&#x5757;&#x4E2D;&#x95F4;&#x7528;&#x9002;&#x5F53;&#x7684;&#x7A7A;&#x884C;&#x9694;&#x5F00;&#x3002;</p>
<h3 class="mume-header" id="14-%E6%B3%A8%E9%87%8A">1.4 &#x6CE8;&#x91CA;</h3>

<p>&#x6CE8;&#x91CA;&#x65F6;:</p>
<ol>
<li><code>//</code> &#x5E94;&#x4E0E;&#x4EE3;&#x7801;&#x76F8;&#x9694;&#x81F3;&#x5C11;1&#x4E2A;&#x7A7A;&#x683C;&#x3002;</li>
<li>&#x8FDE;&#x7EED;&#x591A;&#x884C;&#x5C3D;&#x91CF;&#x5BF9;&#x9F50;&#x3002;</li>
<li><code>//</code>&#x540E;&#x8981;&#x518D;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#x3002;</li>
<li>&#x82E5;&#x5728;&#x4E00;&#x884C;&#x4E0A;&#xFF0C;&#x4E0D;&#x5B9C;&#x8FC7;&#x957F;&#x3002;</li>
</ol>
<pre data-role="codeBlock" data-info="cpp{.line-numbers}" class="language-cpp line-numbers"><span class="token keyword keyword-int">int</span> left <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">,</span> right <span class="token operator">=</span> n<span class="token punctuation">;</span> <span class="token comment">// left is the leftmost index of Array;</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span></span></pre><h3 class="mume-header" id="15-%E5%AF%B9%E9%BD%90%E5%92%8C%E7%BC%A9%E8%BF%9B">1.5 &#x5BF9;&#x9F50;&#x548C;&#x7F29;&#x8FDB;</h3>

<ol>
<li>&#x63A8;&#x8350;&#x7528;<strong>&#x56DB;&#x4E2A;&#x7A7A;&#x683C;</strong>&#x4F5C;&#x4E3A;&#x7F29;&#x8FDB;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x7528;tab&#xFF0C;&#x8BF7;&#x8BBE;&#x7F6E;ide&#x7684;<code>tab&#x8F6C;4&#x4E2A;&#x7A7A;&#x683C;</code>&#x529F;&#x80FD;&#x3002;</li>
<li>&#x4EE3;&#x7801;&#x5757;&#x5185;&#x90E8;&#x4E25;&#x683C;&#x6267;&#x884C;&#x4E00;&#x4E2A;&#x7F29;&#x8FDB;&#x3002;</li>
</ol>
<h3 class="mume-header" id="16-%E4%BB%A3%E7%A0%81%E8%A1%8C">1.6 &#x4EE3;&#x7801;&#x884C;</h3>

<ol>
<li>&#x4E00;&#x884C;&#x4EE3;&#x7801;&#x53EA;&#x505A;&#x4E00;&#x4EF6;&#x4E8B;&#x60C5;&#xFF0C;&#x53EA;&#x5199;&#x4E00;&#x6761;&#x8BED;&#x53E5;&#x3002;&#x8FD9;&#x6837;&#x7684;&#x4EE3;&#x7801;&#x5BB9;&#x6613;&#x9605;&#x8BFB;&#xFF0C;&#x5E76;&#x4E14;&#x65B9;&#x4FBF;&#x4E8E;&#x5199;&#x6CE8;&#x91CA;&#x3002;</li>
<li>&#x591A;&#x884C;&#x53D8;&#x91CF;&#x5B9A;&#x4E49;&#xFF0C;&#x4E3A;&#x4E86;&#x8FFD;&#x6C42;&#x4EE3;&#x7801;&#x6392;&#x7248;&#x7F8E;&#x89C2;&#xFF0C;&#x53EF;&#x5C06;&#x53D8;&#x91CF;&#x7AD6;&#x5411;&#x5BF9;&#x9F50;&#x3002;</li>
<li>&#x4EE3;&#x7801;&#x884C;&#x6700;&#x5927;&#x957F;&#x5EA6;&#x5B9C;&#x63A7;&#x5236;&#x5728;&#x4E00;&#x5B9A;&#x4E2A;&#x5B57;&#x7B26;&#x4EE5;&#x5185;&#xFF0C;&#x80FD;&#x5728;&#x5F53;&#x524D;&#x5C4F;&#x5E55;&#x5185;&#x5168;&#x90E8;&#x53EF;&#x89C1;&#x4E3A;&#x5B9C;&#x3002;</li>
</ol>
<h3 class="mume-header" id="17-%E5%87%BD%E6%95%B0%E5%B0%81%E8%A3%85">1.7 &#x51FD;&#x6570;&#x5C01;&#x88C5;</h3>

<p>&#x4EE3;&#x7801;&#x91CF;&#x8F83;&#x5927;&#xFF0C;&#x5C3D;&#x91CF;&#x4F7F;&#x7528;&#x51FD;&#x6570;&#x5C01;&#x88C5;&#x6765;&#x4FDD;&#x8BC1;&#x903B;&#x8F91;&#x7684;&#x7F1C;&#x5BC6;&#x548C;&#x6A21;&#x5757;&#x7684;&#x72EC;&#x7ACB;&#xFF0C;&#x4E3A;&#x8C03;&#x8BD5;bug&#x505A;&#x8F85;&#x52A9;&#x3002;</p>
<h3 class="mume-header" id="18-%E6%88%90%E5%AF%B9%E4%B9%A6%E5%86%99">1.8 &#x6210;&#x5BF9;&#x4E66;&#x5199;</h3>

<p>&#x8F93;&#x5165;&apos;()&apos;&#xFF0C;&apos;[]&apos;&#xFF0C;&apos;{}&apos; &#x65F6;&#x5E94;&#x6210;&#x5BF9;&#x8F93;&#x5165;&#xFF0C;&#x907F;&#x514D;&#x758F;&#x6F0F;&#x3002;</p>
<h3 class="mume-header" id="19-%E6%8B%AC%E5%8F%B7">1.9 &#x62EC;&#x53F7;</h3>

<p>&#x76EE;&#x524D;&#x6BD4;&#x8F83;&#x901A;&#x884C;&#x7684;&#x6807;&#x51C6;&#x662F;&#xFF1A;</p>
<ol>
<li>&#x62EC;&#x53F7;&#x5C3D;&#x91CF;&#x4E0D;&#x7701;&#x7565;&#xFF0C;&#x7279;&#x6B8A;&#x7ED3;&#x6784;&#x9664;&#x5916;&#x3002;</li>
<li><code>&#x7C7B;</code>&#xFF0C;<code>&#x7ED3;&#x6784;</code>&#xFF0C;<code>&#x679A;&#x4E3E;</code>&#xFF0C;<code>&#x8054;&#x5408;</code>&#xFF0C;<code>&#x51FD;&#x6570;</code>&#x7684;&#x5927;&#x62EC;&#x53F7;&#x53E6;&#x8D77;&#x4E00;&#x884C;&#x3002;</li>
<li><code>&#x5206;&#x652F;</code>&#x3001;<code>&#x5FAA;&#x73AF;</code>&#x8BED;&#x53E5;&#x5DE6;&#x62EC;&#x53F7;&#x53EF;&#x4EE5;&#x4E0D;&#x6362;&#x884C;&#x3002;&#x6211;&#x4E2A;&#x4EBA;&#x4E2A;&#x4EBA;&#x503E;&#x5411;&#x4E8E;&#x5168;&#x90E8;&#x6362;&#x884C;&#xFF0C;&#x8FD9;&#x5757;&#x5927;&#x5BB6;&#x53EF;&#x4EE5;&#x6309;&#x7167;&#x81EA;&#x5DF1;&#x4E60;&#x60EF;&#x3002;</li>
</ol>
<h3 class="mume-header" id="110-%E8%A1%A8%E8%BE%BE%E5%BC%8F">1.10 &#x8868;&#x8FBE;&#x5F0F;</h3>

<ol>
<li>&#x907F;&#x514D;&#x5728;&#x8868;&#x8FBE;&#x5F0F;&#x4E2D;&#x7528;&#x8D4B;&#x503C;&#x8BED;&#x53E5;&#x3002;</li>
<li>&#x907F;&#x514D;&#x5BF9;&#x6D6E;&#x70B9;&#x7C7B;&#x578B;&#x505A;&#x7B49;&#x4E8E;&#x6216;&#x4E0D;&#x7B49;&#x4E8E;&#x5224;&#x65AD;&#x3002;</li>
<li>&#x5728;&#x5FAA;&#x73AF;&#x8FC7;&#x7A0B;&#x4E2D;&#x4E0D;&#x8981;&#x4FEE;&#x6539;&#x5FAA;&#x73AF;&#x8BA1;&#x6570;&#x5668;&#x3002;</li>
<li>&#x68C0;&#x6D4B;&#x7A7A;&#x6307;&#x9488;&#xFF0C;&#x7528; <code>if(p)</code>&#x3002;</li>
<li>&#x68C0;&#x6D4B;&#x975E;&#x7A7A;&#x6307;&#x9488;&#xFF0C;&#x7528; <code>if(!p)</code>&#x3002;</li>
</ol>
<h3 class="mume-header" id="111-%E5%85%B6%E4%BB%96">1.11 &#x5176;&#x4ED6;</h3>

<ol>
<li>&#x4E0D;&#x4F7F;&#x7528;<code>goto</code>&#x8BED;&#x53E5;&#x3002;</li>
<li>&#x4E0D;&#x8981;&#x4F7F;&#x7528;&#x9B54;&#x9B3C;&#x6570;&#x5B57;&#x3002;</li>
</ol>
<h2 class="mume-header" id="%E4%BA%8C-%E5%8F%AF%E9%80%89%E4%BB%A3%E7%A0%81%E8%A7%84%E8%8C%83">&#x4E8C;&#x3001;&#x53EF;&#x9009;&#x4EE3;&#x7801;&#x89C4;&#x8303;</h2>

<h3 class="mume-header" id="21-%E7%A9%BA%E6%A0%BC">2.1 &#x7A7A;&#x683C;</h3>

<ol>
<li>&#x6BCF;&#x4E2A;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x4E24;&#x65C1;&#x5E94;&#x4E25;&#x683C;&#x589E;&#x52A0;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#xFF0C;&#x7531;&#x9017;&#x53F7;&#x5206;&#x9694;&#x7684;&#x591A;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x524D;&#xFF0C;&#x4E25;&#x683C;&#x7528;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#xFF01;(&#x7B2C;&#x4E00;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x9664;&#x5916;)&#x4F8B;&#x5982;&#xFF1A;<code>if (a == b)</code>&#x3001;<code>sum += a;</code>&#x3001;<code>a &amp;&amp; b</code>&#x3001;<code>power(a, b, c, d, c + 1)</code></li>
<li>&#x4E0D;&#x8981;&#x5728;<code>::</code>&#x3001;<code>-&gt;</code>&#x3001;<code>.</code>&#x524D;&#x540E;&#x52A0;&#x7A7A;&#x683C;&#x3002;</li>
<li>&#x4E0D;&#x8981;&#x5728;<code>,</code>&#x3001;<code>;</code>&#x4E4B;&#x524D;&#x52A0;&#x7A7A;&#x683C;&#x3002;</li>
</ol>
<h3 class="mume-header" id="22-%E5%AE%9A%E4%B9%89%E5%B8%B8%E9%87%8F">2.2 &#x5B9A;&#x4E49;&#x5E38;&#x91CF;</h3>

<p>&#x82E5;&#x9898;&#x76EE;&#x5DF2;&#x7ECF;&#x7ED9;&#x5B9A;&#x5E38;&#x91CF;&#xFF0C;&#x5E94;&#x7528; <code>const</code> &#x7C7B;&#x578B;&#x5B9A;&#x4E49;&#xFF0C;&#x5E76;&#x7ED9;&#x4E0A;&#x754C;&#x9002;&#x5F53;&#x7559;&#x51FA;&#x7A7A;&#x95F4;&#x3002;</p>
<pre data-role="codeBlock" data-info="cpp{.line-numbers}" class="language-cpp line-numbers"><span class="token keyword keyword-const">const</span> <span class="token keyword keyword-int">int</span> max_n <span class="token operator">=</span> <span class="token number">1e5</span> <span class="token operator">+</span> <span class="token number">10</span><span class="token punctuation">;</span>
<span class="token keyword keyword-const">const</span> <span class="token keyword keyword-int">int</span> mod <span class="token operator">=</span> <span class="token number">1e9</span> <span class="token operator">+</span> <span class="token number">7</span><span class="token punctuation">;</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></pre><h3 class="mume-header" id="23-%E9%87%8D%E5%91%BD%E5%90%8D">2.3 &#x91CD;&#x547D;&#x540D;</h3>

<p>&#x7528;<code>typedef</code>&#x7B80;&#x5316;&#x7A0B;&#x5E8F;&#x4E2D;&#x7684;&#x590D;&#x6742;&#x8BED;&#x6CD5;&#xFF0C;&#x6BD4;&#x5982;&#x82E5;&#x9898;&#x76EE;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x5230;<code>long long</code>&#xFF0C;&#x5E94;&#x4F7F;&#x7528; <code>LL</code> &#x8FDB;&#x884C;&#x91CD;&#x547D;&#x540D;&#x3002;</p>
<pre data-role="codeBlock" data-info="cpp{.line-numbers}" class="language-cpp line-numbers"><span class="token keyword keyword-typedef">typedef</span> <span class="token keyword keyword-long">long</span> <span class="token keyword keyword-long">long</span> LL<span class="token punctuation">;</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span></span></pre><h3 class="mume-header" id="24-%E4%B8%BB%E5%87%BD%E6%95%B0">2.4 &#x4E3B;&#x51FD;&#x6570;</h3>

<ol>
<li>&#x4E0D;&#x7701;&#x7565;<code>mian</code>&#x51FD;&#x6570;&#x7684;<code>return 0;</code></li>
<li><code>return 0;</code>&#x8BED;&#x53E5;&#x524D;&#x5E94;&#x4E0E;&#x4E3B;&#x8981;&#x4EE3;&#x7801;&#x884C;&#x53EF;&#x9694;&#x5F00;&#x4E00;&#x4E2A;&#x7A7A;&#x884C;&#x3002;</li>
</ol>
<h3 class="mume-header" id="25-i%E5%92%8Ci">2.5 <code>i++</code>&#x548C;<code>++i</code></h3>

<p>&#x4E3A;&#x4E86;&#x4FBF;&#x4E8E;&#x4EE3;&#x7801;&#x66F4;&#x597D;&#x7684;&#x9605;&#x8BFB;&#x53EF;&#x4EE5;&#x5199;&#x6210;<code>i++</code>&#xFF0C;&#x4F46;&#x66F4;&#x63A8;&#x8350;<code>++i</code>&#xFF0C;&#x4E0D;&#x5BB9;&#x6613;&#x51FA;&#x9519;&#x800C;&#x4E14;&#x5F00;&#x9500;&#x8F83;&#x5C0F;&#x3002;</p>
<h3 class="mume-header" id="26-%E7%B1%BB%E5%9E%8B%E7%9B%B8%E5%85%B3">2.6 &#x7C7B;&#x578B;&#x76F8;&#x5173;</h3>

<ol>
<li>&#x5C3D;&#x91CF;&#x907F;&#x514D;&#x4F7F;&#x7528;&#x6D6E;&#x70B9;&#x6570;&#xFF0C;&#x9664;&#x975E;&#x5FC5;&#x987B;&#x3002;</li>
<li>&#x5C11;&#x7528;<code>union</code>&#xFF0C;&#x5982;&#x679C;&#x4E00;&#x5B9A;&#x8981;&#x7528;&#xFF0C;&#x5219;&#x91C7;&#x7528;&#x7B80;&#x5355;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x6210;&#x5458;&#x3002;</li>
<li>&#x7528;<code>enum</code>&#x53D6;&#x4EE3;(&#x4E00;&#x7EC4;&#x76F8;&#x5173;&#x7684;)&#x5E38;&#x91CF;&#x3002;</li>
<li>&#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#x5B8C;&#x6210;&#x540E;&#x7ACB;&#x5373;&#x521D;&#x59CB;&#x5316;&#xFF0C;&#x52FF;&#x7B49;&#x5230;&#x4F7F;&#x7528;&#x65F6;&#x624D;&#x8FDB;&#x884C;&#x3002;</li>
<li>&#x5982;&#x679C;&#x6709;&#x66F4;&#x4F18;&#x96C5;&#x7684;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF0C;&#x4E0D;&#x8981;&#x4F7F;&#x7528;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x3002;</li>
</ol>
<h3 class="mume-header" id="27-%E5%85%BC%E5%AE%B9%E6%80%A7">2.7 &#x517C;&#x5BB9;&#x6027;</h3>

<ol>
<li>&#x786E;&#x4FDD;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x4E0D;&#x4F1A;&#x4E22;&#x5931;&#x4FE1;&#x606F;&#x3002;</li>
<li>&#x4E0D;&#x8981;&#x5047;&#x8BBE;&#x7C7B;&#x578B;&#x7684;&#x5B58;&#x50A8;&#x5C3A;&#x5BF8;&#x3002;&#x8BA1;&#x7B97;&#x5360;&#x7528;&#x5B57;&#x8282;&#x6570;&#x65F6;&#x4E0D;&#x8981;&#x4F7F;&#x7528;&#x8BB0;&#x5FC6;&#x4E2D;&#x7684;&#x5E38;&#x6570;&#xFF0C;&#x4F7F;&#x7528;<code>sizeof(int)</code>&#x8FD9;&#x6837;&#x4EE3;&#x7801;&#x8BA1;&#x7B97;&#x51FA;&#x6765;&#x7684;&#x4E3A;&#x51C6;&#x3002;</li>
<li>&#x6CE8;&#x610F;&#x8FD0;&#x7B97;&#x6EA2;&#x51FA;&#x95EE;&#x9898;&#x3002;</li>
<li>&#x4E0D;&#x8981;&#x91CD;&#x65B0;&#x5B9E;&#x73B0;&#x6807;&#x51C6;&#x5E93;&#x51FD;&#x6570;,&#x5982;<code>STL</code>&#x5DF2;&#x7ECF;&#x5B58;&#x5728;&#x7684;&#x3002;</li>
</ol>
<h2 class="mume-header" id="%E4%B8%89-noi%E6%93%8D%E4%BD%9C%E8%A6%81%E6%B1%82">&#x4E09;&#x3001;NOI&#x64CD;&#x4F5C;&#x8981;&#x6C42;</h2>

<h3 class="mume-header" id="31-%E6%98%8E%E7%A1%AE%E7%A6%81%E6%AD%A2%E8%A1%8C%E4%B8%BA">3.1 &#x660E;&#x786E;&#x7981;&#x6B62;&#x884C;&#x4E3A;</h3>

<p>&#x9009;&#x624B;&#x7A0B;&#x5E8F;&#x4E2D;&#x53EA;&#x5141;&#x8BB8;&#x901A;&#x8FC7;&#x5BF9;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x8BFB;&#x5199;&#x3001;&#x4EE5;&#x53CA;&#x5BF9;&#x6307;&#x5B9A;&#x5E93;&#x51FD;&#x6570;&#x7684;&#x8C03;&#x7528;&#x7B49;&#x9898;&#x76EE;&#x4E2D;&#x660E;&#x786E;&#x89C4;&#x5B9A;&#x7684;&#x65B9;&#x5F0F;&#x4E0E;&#x5916;&#x90E8;&#x73AF;&#x5883;&#x901A;&#x4FE1;&#x3002;&#x5728;&#x7A0B;&#x5E8F;&#x4E2D;&#x4E25;&#x7981;&#x4E0B;&#x5217;&#x64CD;&#x4F5C;&#xFF1A;</p>
<ol>
<li>&#x8BD5;&#x56FE;&#x8BBF;&#x95EE;&#x7F51;&#x7EDC;</li>
<li>&#x4F7F;&#x7528;<code>fork</code>&#x3001;<code>exec</code>&#x3001;<code>system</code>&#x6216;&#x5176;&#x5B83;&#x7EBF;&#x7A0B;/&#x8FDB;&#x7A0B;&#x751F;&#x6210;&#x51FD;&#x6570;</li>
<li>&#x6253;&#x5F00;&#x6216;&#x521B;&#x5EFA;&#x9898;&#x76EE;&#x89C4;&#x5B9A;&#x7684;&#x8F93;&#x5165;/&#x8F93;&#x51FA;&#x6587;&#x4EF6;&#x4E4B;&#x5916;&#x7684;&#x5176;&#x5B83;&#x6587;&#x4EF6;&#x548C;&#x76EE;&#x5F55;</li>
<li>&#x8FD0;&#x884C;&#x5176;&#x5B83;&#x7A0B;&#x5E8F;</li>
<li>&#x6539;&#x53D8;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x7684;&#x8BBF;&#x95EE;&#x6743;&#x9650;</li>
<li>&#x8BFB;&#x5199;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x7684;&#x7BA1;&#x7406;&#x4FE1;&#x606F;</li>
<li>&#x4F7F;&#x7528;&#x9664;&#x8BFB;&#x5199;&#x89C4;&#x5B9A;&#x7684;&#x8F93;&#x5165;/&#x8F93;&#x51FA;&#x6587;&#x4EF6;&#x4E4B;&#x5916;&#x7684;&#x5176;&#x5B83;&#x7CFB;&#x7EDF;&#x8C03;&#x7528;</li>
<li>&#x6355;&#x83B7;&#x548C;&#x5904;&#x7406;&#x9F20;&#x6807;&#x548C;&#x952E;&#x76D8;&#x7684;&#x8F93;&#x5165;&#x6D88;&#x606F;</li>
<li>&#x8BFB;&#x5199;&#x8BA1;&#x7B97;&#x673A;&#x7684;&#x8F93;&#x5165;/&#x8F93;&#x51FA;&#x7AEF;&#x53E3;</li>
</ol>
<h3 class="mume-header" id="32-%E7%BC%96%E7%A8%8B%E9%80%9A%E5%88%99">3.2 &#x7F16;&#x7A0B;&#x901A;&#x5219;</h3>

<ol>
<li>&#x5BF9;&#x4E8E;&#x6BCF;&#x4E00;&#x9053;&#x8BD5;&#x9898;&#xFF0C;&#x9009;&#x624B;&#x53EA;&#x5E94;&#x63D0;&#x4EA4;&#x4E00;&#x4E2A;&#x6E90;&#x7A0B;&#x5E8F;&#x6587;&#x4EF6;&#x3002;</li>
<li>&#x6E90;&#x7A0B;&#x5E8F;&#x6587;&#x4EF6;&#x540D;&#x7531;&#x8BD5;&#x9898;&#x540D;&#x79F0;&#x7F29;&#x5199;&#x52A0;&#x540E;&#x7F00;&#x6784;&#x6210;&#xFF0C;&#x6E90;&#x7A0B;&#x5E8F;&#x6587;&#x4EF6;&#x540D;&#x53CA;&#x540E;&#x7F00;&#x4E00;&#x5F8B;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x3002;</li>
<li>PASCAL&#x3001;C&#x53CA;C++&#x7A0B;&#x5E8F;&#x7684;&#x540E;&#x7F00;&#x5206;&#x522B;&#x4E3A;<code>.pas</code>&#x3001;<code>.c</code>&#x3001;<code>.cpp</code>&#x3002;</li>
<li>&#x5F53;&#x53C2;&#x8D5B;&#x9009;&#x624B;&#x5BF9;&#x4E00;&#x9053;&#x8BD5;&#x9898;&#x63D0;&#x4EA4;&#x591A;&#x4EFD;&#x4F7F;&#x7528;&#x4E0D;&#x540C;&#x540E;&#x7F00;&#x7684;&#x6E90;&#x7A0B;&#x5E8F;&#x6587;&#x4EF6;&#x65F6;&#xFF0C;&#x6D4B;&#x8BD5;&#x7CFB;&#x7EDF;&#x6309;&#x7167;<code>.c</code>&#x3001;<code>.cpp</code>&#x3001;<code>.pas</code>&#x7684;&#x987A;&#x5E8F;&#x9009;&#x53D6;&#x7B2C;&#x4E00;&#x4EFD;&#x5B58;&#x5728;&#x7684;&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x7F16;&#x8BD1;&#x548C;&#x8BC4;&#x6D4B;&#xFF0C;&#x5E76;&#x5FFD;&#x7565;&#x5176;&#x4ED6;&#x6587;&#x4EF6;&#x3002;</li>
<li>&#x4F7F;&#x7528;C/C++&#x8BED;&#x8A00;&#x8005;&#x4E0D;&#x5F97;&#x4F7F;&#x7528;&#x81EA;&#x5DF1;&#x7684;&#x5934;&#x6587;&#x4EF6;&#xFF0C;&#x4F7F;&#x7528;Pascal&#x8BED;&#x8A00;&#x8005;&#x4E0D;&#x5F97;&#x4F7F;&#x7528;&#x81EA;&#x5DF1;&#x7684;&#x5E93;&#x5355;&#x5143;&#x3002;</li>
<li>&#x9664;&#x53E6;&#x6709;&#x89C4;&#x5B9A;&#x5916;&#xFF0C;&#x6BCF;&#x9053;&#x9898;&#x53C2;&#x8D5B;&#x7A0B;&#x5E8F;&#x6E90;&#x6587;&#x4EF6;&#x4E0D;&#x5F97;&#x5927;&#x4E8E;100KB&#xFF0C;&#x5982;&#x9009;&#x624B;&#x5728;&#x89C4;&#x5B9A;&#x76EE;&#x5F55;&#x4E0B;&#x53E6;&#x5EFA;&#x5176;&#x5B83;&#x5B50;&#x76EE;&#x5F55;&#xFF0C;&#x8FD9;&#x4E9B;&#x5B50;&#x76EE;&#x5F55;&#x4E2D;&#x7684;&#x6587;&#x4EF6;&#x5747;&#x4F1A;&#x88AB;&#x8BC4;&#x6D4B;&#x7CFB;&#x7EDF;&#x5FFD;&#x7565;&#x3002;</li>
<li>&#x9009;&#x624B;&#x7A0B;&#x5E8F;&#x5E94;&#x6B63;&#x5E38;&#x7ED3;&#x675F;&#x5E76;&#x8FD4;&#x56DE;Linux&#x7CFB;&#x7EDF;&#xFF0C;&#x4E3B;&#x51FD;&#x6570;&#x7684;&#x8FD4;&#x56DE;&#x503C;&#x5FC5;&#x987B;&#x4E3A;0&#x3002;</li>
</ol>
<h2 class="mume-header" id="%E5%9B%9B-%E7%A4%BA%E4%BE%8B">&#x56DB;&#x3001;&#x793A;&#x4F8B;</h2>

<pre data-role="codeBlock" data-info="cpp{.line-numbers}" class="language-cpp line-numbers"><span class="token macro property"><span class="token directive-hash">#</span><span class="token directive keyword">include</span> <span class="token string">&lt;iostream&gt;</span></span>
<span class="token keyword keyword-using">using</span> <span class="token keyword keyword-namespace">namespace</span> std<span class="token punctuation">;</span>

<span class="token keyword keyword-int">int</span> n<span class="token punctuation">,</span> x<span class="token punctuation">;</span>
<span class="token keyword keyword-int">int</span> a<span class="token punctuation">[</span><span class="token number">10</span><span class="token punctuation">]</span><span class="token punctuation">;</span>   <span class="token comment">// &#x8981;&#x6392;&#x5217;&#x7684;&#x7B97;&#x5F0F;</span>
<span class="token keyword keyword-int">int</span> b<span class="token punctuation">[</span><span class="token number">10</span><span class="token punctuation">]</span><span class="token punctuation">;</span>   <span class="token comment">// &#x6392;&#x5217;&#x7684;&#x7ED3;&#x679C;</span>
<span class="token keyword keyword-int">int</span> vis<span class="token punctuation">[</span><span class="token number">10</span><span class="token punctuation">]</span><span class="token punctuation">;</span> <span class="token comment">// &#x5168;&#x6392;&#x5217;&#x7684;&#x6807;&#x8BB0;&#xFF0C;&#x7528;&#x4E8E;&#x8BB0;&#x5F55;&#x5DF2;&#x7ECF;&#x7528;&#x8FC7;&#x7684;&#x4EBA;</span>

<span class="token keyword keyword-void">void</span> <span class="token function">input</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
<span class="token punctuation">{</span>
    cin <span class="token operator">&gt;&gt;</span> n<span class="token punctuation">;</span>
    <span class="token keyword keyword-for">for</span> <span class="token punctuation">(</span><span class="token keyword keyword-int">int</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> n<span class="token punctuation">;</span> <span class="token operator">++</span>i<span class="token punctuation">)</span>
    <span class="token punctuation">{</span>
        cin <span class="token operator">&gt;&gt;</span> a<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>

<span class="token keyword keyword-void">void</span> <span class="token function">output</span><span class="token punctuation">(</span><span class="token keyword keyword-int">int</span> b<span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
<span class="token punctuation">{</span>
    <span class="token keyword keyword-for">for</span> <span class="token punctuation">(</span><span class="token keyword keyword-int">int</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> n<span class="token punctuation">;</span> <span class="token operator">++</span>i<span class="token punctuation">)</span>
    <span class="token punctuation">{</span>
        cout <span class="token operator">&lt;&lt;</span> b<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">&lt;&lt;</span> <span class="token string">&apos; &apos;</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    cout <span class="token operator">&lt;&lt;</span> endl<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword keyword-void">void</span> <span class="token function">dfs</span><span class="token punctuation">(</span><span class="token keyword keyword-int">int</span> b<span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token keyword keyword-int">int</span> p<span class="token punctuation">)</span> <span class="token comment">// &#x5F53;&#x524D;&#x72B6;&#x6001;&#x548C;&#x641C;&#x7D20;&#x8FDB;&#x5EA6;</span>
<span class="token punctuation">{</span>
    <span class="token comment">// &#x8D70;&#x5230;&#x6700;&#x7EC8;&#x7684;&#x72B6;&#x51B5;</span>
    <span class="token keyword keyword-if">if</span> <span class="token punctuation">(</span>p <span class="token operator">==</span> n<span class="token punctuation">)</span>
    <span class="token punctuation">{</span>
        <span class="token function">output</span><span class="token punctuation">(</span>b<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword keyword-return">return</span> <span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    <span class="token comment">// &#x641C;&#x7D22;</span>
    <span class="token keyword keyword-for">for</span> <span class="token punctuation">(</span><span class="token keyword keyword-int">int</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> n<span class="token punctuation">;</span> <span class="token operator">++</span>i<span class="token punctuation">)</span>
    <span class="token punctuation">{</span>
        <span class="token keyword keyword-if">if</span> <span class="token punctuation">(</span>vis<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// &#x5982;&#x679C;&#x7B2C;i&#x4E2A;&#x4EBA;&#x8FD8;&#x6CA1;&#x7528;&#x8FC7;&#x72B6;&#x6001;&#x5408;&#x6CD5;&#xFF0C;&#x6570;&#x5B57;&#x4E0D;&#x80FD;&#x91CD;&#x590D;</span>
        <span class="token punctuation">{</span>
            b<span class="token punctuation">[</span>p<span class="token punctuation">]</span> <span class="token operator">=</span> a<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">;</span>   <span class="token comment">// &#x653E;&#x5230;b&#x91CC;</span>
            vis<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>    <span class="token comment">// &#x7528;&#x8FC7;&#x4E86;</span>
            <span class="token function">dfs</span><span class="token punctuation">(</span>b<span class="token punctuation">,</span> p <span class="token operator">+</span> <span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x518D;&#x53BB;&#x62FF;&#x4E0B;&#x4E00;&#x5C42;&#x7684;</span>
            <span class="token comment">// &#x5168;&#x6392;&#x5217;&#x7684;&#x65F6;&#x5019;&#x5F97;&#x6062;&#x590D;0&#xFF0C;&#x8FD9;&#x4E2A;&#x6570;&#x5B57;&#x53EF;&#x7528;&#x4E5F;&#x53EF;&#x4E0D;&#x7528;&#x53BB;&#x627E;&#x4E0B;&#x4E00;&#x4E2A;&#xFF0C;&#x9700;&#x8981;&#x56DE;&#x6EAF;</span>
            vis<span class="token punctuation">[</span>i<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>    
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
    <span class="token comment">// &#x672C;&#x9898;&#x6CA1;&#x627E;&#x5230;&#x5C31;&#x5565;&#x4E8B;&#x4E0D;&#x5E72;&#xFF0C;&#x6240;&#x4EE5;&#x4E5F;&#x6CA1;&#x6709;&#x627E;&#x4E0D;&#x5230;&#x65B0;&#x72B6;&#x6001;&#x505A;&#x7684;&#x4E8B;</span>
<span class="token punctuation">}</span>

<span class="token keyword keyword-int">int</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
<span class="token punctuation">{</span>
    <span class="token function">input</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token function">dfs</span><span class="token punctuation">(</span>b<span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x5F80;b&#x91CC;&#x6392;&#x4E1C;&#x897F;&#xFF0C;&#x6B64;&#x65F6;0&#x4E2A;&#x6392;&#x597D;&#x7684;</span>
    <span class="token keyword keyword-return">return</span> <span class="token number">0</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre><h2 class="mume-header" id="%E5%9B%9B-%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99">&#x56DB;&#x3001;&#x53C2;&#x8003;&#x8D44;&#x6599;&#xFF1A;</h2>

<blockquote>
<ol>
<li><a href="https://blog.csdn.net/qq_40861916/article/details/84574653">&#x3010;&#x4EE3;&#x7801;&#x89C4;&#x8303;&#x3011;&#x7ADE;&#x8D5B; C/C++ &#x901A;&#x7528;&#x4EE3;&#x7801;&#x89C4;&#x8303;</a></li>
<li><a href="https://www.zhihu.com/question/376052436">&#x5E94;&#x4E0D;&#x5E94;&#x8BE5;&#x5EFA;&#x8BAE; OI &#x521D;&#x5B66;&#x8005;&#x8BB2;&#x7A76;&#x4EE3;&#x7801;&#x89C4;&#x8303;&#xFF1F;</a></li>
<li><a href="https://zhuanlan.zhihu.com/p/82613843">&#x5173;&#x4E8E;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#xFF0C;&#x4E2A;&#x4EBA;&#x63A8;&#x8350;Google C++ Style Guide</a></li>
<li><a href="https://zhuanlan.zhihu.com/p/407442466">&#x5173;&#x4E8E;NOI&#x7CFB;&#x5217;&#x6D3B;&#x52A8;&#x4E2D;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x4F7F;&#x7528;&#x9650;&#x5236;&#x7684;&#x8865;&#x5145;&#x8BF4;&#x660E;</a></li>
</ol>
</blockquote>

      </div>
      
      
    
    
    
    
    
    
    
    
  
    </body></html>